--TEST--
CTPP Compile examples
--FILE--
<?php
	error_reporting(E_ERROR);

	ini_set("ctpp.arg_stack_size",       "10240");
	ini_set("ctpp.code_stack_size",      "10240");
	ini_set("ctpp.steps_limit",          "10240");
	ini_set("ctpp.cache_bytecode",       "0");
	ini_set("ctpp.max_functions",        "1024");

	// Create new class
	$T = ctpp_new();

	$tmpl = ctpp_parse_template($T, "tmpl/logic-error.tmpl");

	if (ctpp_output($T, $tmpl) == false)
	{
		$ErrorDescr = ctpp_get_last_error($T);
		printf("Error: 0x%08X(%s), file \"%s\" at line %d, pos %d; IP: 0x%08X\n", $ErrorDescr["error_code"], $ErrorDescr["error_str"], $ErrorDescr["template_name"], $ErrorDescr["line"], $ErrorDescr["pos"], $ErrorDescr["ip"]);
	}

?>
--EXPECT--
Error: 0x0200000C(Unsupported syscall: "FUnction_DOES_NOT_EXIST"), file "tmpl/logic-error.tmpl" at line 0, pos 0; IP: 0x00000000

